<@layout.default "ORM Bench">
	<form action="${link.action}ormbench" method="post">
	<fieldset>
		<legend>Inputs</legend>
		<table>
			<tr>
				<th>Scale:</th>
				<td><input type="text" name="ormBench.scale" value="${actionBean.ormBench.scale}" size="2" maxlength="2"/>&nbsp;x&nbsp;100000 Accounts</td>
			</tr>
			<tr>
				<th>JDBC Driver:</th>
				<td><input type="text" name="ormBench.jdbcDriver" value="${actionBean.ormBench.jdbcDriver}" size="64" maxlength="128"/>&nbsp;Driver Must Be On Classpath</td>
			</tr>
			<tr>
				<th>JDBC URL:</th>
				<td><input type="text" name="ormBench.jdbcUrl" value="${actionBean.ormBench.jdbcUrl}" size="64" maxlength="128"/>&nbsp;Database Must Exist</td>
			</tr>
			<tr>
				<th>JDBC Username:</th>
				<td><input type="text" name="ormBench.jdbcUsername" value="${actionBean.ormBench.jdbcUsername}" size="64" maxlength="128"/></td>
			</tr>
			<tr>
				<th>JDBC Password:</th>
				<td><input type="text" name="ormBench.jdbcPassword" value="${actionBean.ormBench.jdbcPassword}" size="64" maxlength="128"/></td>
			</tr>
			<tr>
				<td colspan="2" align="right"><input type="submit" name="run" value="Run Benchmark" /></td>
			</tr>
		</table>
	</fieldset>
	</form>
	
	<#if actionBean.ebeanResults??>
		<fieldset>
			<legend>Ebean Results</legend>
			<table border="1" width="400px">
				<tr>
					<th>Test</th>
					<th>Result</th>
				</tr>
				<#list actionBean.ebeanResults?keys as test>
					<tr>
						<td>${test}</td>
						<td>${actionBean.ebeanResults[test]} ms</td>
					</tr>
				</#list>
			</table>
		</fieldset>
	</#if>
	
	<#if actionBean.hibernateResults??>
		<fieldset>
			<legend>Hibernate Results</legend>
			<table border="1" width="400px">
				<tr>
					<th>Test</th>
					<th>Result</th>
				</tr>
				<#list actionBean.hibernateResults?keys as test>
					<tr>
						<td>${test}</td>
						<td>${actionBean.hibernateResults[test]} ms</td>
					</tr>
				</#list>
			</table>
		</fieldset>
	</#if>
</@layout.default>